﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ReportesPeriodoView.aspx.cs" Inherits="Recursos.WebForm4" %>
<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit, Version=4.1.60919.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <h2>Reportes Por Periodo</h2>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
            <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Periodo">
             <ContentTemplate>  
            <tr>
                <td>
                    <asp:Label ID="LabelModalidad" runat="server" Text="Modalidad"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListModalidad" runat="server"></asp:DropDownList></td>
                <td>
                    <asp:Label ID="LabelPeriodo" runat="server" Text="Periodo"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListPeriodo" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Año"></asp:Label></td>
                <td>
                   <asp:TextBox ID="tab1año" runat="server"></asp:TextBox></td>
                                <asp:CompareValidator ID="cv2" runat="server" ControlToValidate="tab1año" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser número entero. " /> <p></p>
                 <asp:Label ID="Label18" runat="server" Text="Tipo"></asp:Label></td>
                
                <td>
                    <asp:DropDownList ID="DropDownListtipo" runat="server">
                                    
                <asp:ListItem>Particular</asp:ListItem>
                <asp:ListItem>Curso</asp:ListItem>
         
                    </asp:DropDownList>
                </td>
                </td>
                <td>
                    <asp:Button ID="btngenerar" Text="Generar" runat="server" OnClick="GenerarReportePeriodo"/>
                </td>
            </tr>
             </ContentTemplate>  
            </asp:TabPanel>
            
            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Carrera">
             <ContentTemplate>  
            <tr>
                <td>
                    <asp:Label ID="Label2" runat="server" Text="Modalidad"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListModalidad2" runat="server"></asp:DropDownList></td>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Periodo"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListPeriodo2" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Año"></asp:Label></td>
                <td>
                    <asp:TextBox ID="tab2año" runat="server"></asp:TextBox></td>
                     <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="tab2año" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser número entero. " />
   <p></p>
                </td>
                 <td>
                    <asp:Label ID="Label5" runat="server" Text="Carrera"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListCarrera2" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                <td>
                    <asp:Button ID="btngenerar2" Text="Generar" runat="server" OnClick="GenerarReporteCarrera"/>
                </td>
            </tr>
             </ContentTemplate>  
            </asp:TabPanel>
            
            <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Curso">
             <ContentTemplate>  
            <tr>
                <td>
                    <asp:Label ID="Label6" runat="server" Text="Modalidad"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownList5Modalidad3" runat="server"></asp:DropDownList></td>
                <td>
                    <asp:Label ID="Label7" runat="server" Text="Periodo"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListPeriodo3" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label8" runat="server" Text="Año"></asp:Label></td>
                <td>
                     <asp:TextBox ID="tab3año" runat="server"></asp:TextBox></td>
                      <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="tab3año" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser número entero. " />
   <p></p>
                </td>
                 <td>
                 <asp:Label ID="Label19" runat="server" Text="Carrera"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownList1carrera" runat="server" AutoPostBack="True" 
            onselectedindexchanged="cargarcursos_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Label ID="Label9" runat="server" Text="Curso"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListCurso3" runat="server" >
                    </asp:DropDownList>
                </td>
                <td>
                <td>
                    <asp:Button ID="btngenerar3" Text="Generar" runat="server" OnClick="GenerarReporteCurso"/>
                </td>
            </tr>
             </ContentTemplate>  
            </asp:TabPanel>
            
            <asp:TabPanel ID="TabPanel5" runat="server" HeaderText="Profesor">
             <ContentTemplate>  
            <tr>
                <td>
                    <asp:Label ID="Label10" runat="server" Text="Modalidad"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListModalidad5" runat="server"></asp:DropDownList></td>
                <td>
                    <asp:Label ID="Label11" runat="server" Text="Periodo"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListPeriodo5" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label12" runat="server" Text="Año"></asp:Label></td>
                <td>
                     <asp:TextBox ID="tab5año" runat="server"></asp:TextBox></td>
                      <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToValidate="tab5año" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser número entero. " />
   <p></p>
                </td>
                 <td>
                    <asp:Label ID="Label13" runat="server" Text="Profesor"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListProfesor5" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                <td>
                    <asp:Button ID="btngenerar5" Text="Generar" runat="server" OnClick="GenerarReporteProfesor"/>
                </td>
            </tr>
             </ContentTemplate>  
            </asp:TabPanel>

            <asp:TabPanel ID="TabPanel4" runat="server" HeaderText="Sede">
             <ContentTemplate>  
            <tr>
                <td>
                    <asp:Label ID="Label14" runat="server" Text="Modalidad"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListModalidad4" runat="server"></asp:DropDownList></td>
                <td>
                    <asp:Label ID="Label15" runat="server" Text="Periodo"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListPeriodo4" runat="server">
                                    <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label16" runat="server" Text="Año"></asp:Label></td>
                <td>
                     <asp:TextBox ID="tab4año" runat="server"></asp:TextBox></td>
                      <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToValidate="tab4año" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser número entero. " />
   <p></p>
                </td>
                 <asp:Label ID="Labeltipo" runat="server" Text="Tipo"></asp:Label></td>
                 <td>
                    <asp:DropDownList ID="DropDownListTipo2" runat="server">
                                    
                <asp:ListItem>Particular</asp:ListItem>
                <asp:ListItem>Curso</asp:ListItem>
         
                    </asp:DropDownList>
                 <td>
                    <asp:Label ID="Label17" runat="server" Text="Sede"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="DropDownListSede4" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                <td>
                    <asp:Button ID="btngenerar4" Text="Generar" runat="server" OnClick="GenerarReporteSede"/>
                </td>
            </tr>
             </ContentTemplate>  
            </asp:TabPanel>
        </asp:TabContainer>
    <p>
        </p>
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
        Font-Size="8pt" InteractiveDeviceInfos="(Colección)" 
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" 
        Visible="False" Width="1175px">
        <LocalReport ReportPath="ReportePeriodo.rdlc">
            <DataSources>
                <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                    Name="DataSetPeriodo" />
            </DataSources>
        </LocalReport>
    </rsweb:ReportViewer>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetData" 
        TypeName="Recursos.dsPeriodoTableAdapters.ReportePeriodoTableAdapter">
    </asp:ObjectDataSource>
</asp:Content>
